module BatchesHelper
  def batches_index_fields(options)
    %w[authored sourcename author content]
  end
  
  def batches_format_field(obj, field, options)
    reports_format_field(obj, field, options)
  end
  
  def batches_index_links(objs, options)
    [
      batch_op_link(:name => "Finish", :action => "batches#finish"),
      batch_op_link(:name => "Finish and Scan Another", :action => "batches#finish_and_scan_another"),
      link_to("Cancel", cancel_batches_path)
    ]
  end
end
